package com.bytebuddytest.quickstart;

import java.util.stream.Stream;

/**
 * @author yutianhong
 * @version 1.0
 * @since 2023/08/14 14:23:11
 */
public class HelloWorldTimed {
    public void print() {
        Integer sum = Stream.iterate(0, i -> ++i)
                .limit(1000_000L)
                .reduce(Integer::sum)
                .orElse(null);
        System.out.println("Hello World!");
    }
}
